Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added global variable for custom browser refresh key mapping #75

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

innateessence
Copy link

Title,

I wanted a feature, it didn't exist, so here it is :)

(I used F5 as the default because afaik that's the most likely browser agnostic refresh-page key combo avaliable, although don't quote me on this)

Copy link
Owner

@JamshedVesuna JamshedVesuna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I want to confirm that this hotkey is only used by xdotool to auto-refresh your browser. You shouldn't need to manually press it.

@@ -58,6 +58,10 @@ if !exists("g:vim_markdown_preview_hotkey")
let g:vim_markdown_preview_hotkey='<C-p>'
endif

if !exists("g:vim_markdown_preview_browser_fresh_key")
let g:vim_markdown_preview_browser_fresh_key="F5"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep the default to ctrl+r to keep this change backwards compatible

@innateessence
Copy link
Author

Sounds good to me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants